package com.soft.javase.day02.practice.extendsdemo2;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/16
 */
public class ClassMain {
    public static void main(String[] args) {
        GrandFather grandFather = new GrandFather("张三", 70);
        Father father = new Father("李四", 45,"程序员");
        grandFather.getGrandFather();
        father.getFather();
    }
}
